<?php
Doo::loadCore('db/DooModel');

class FrbFlatDispoBase extends DooModel
{

    /**
     * @var int Max length is 3.
     */
    public $dsp_id;

    /**
     * @var int Max lenghth is 1.
     */
    public $dsp_dispo;

    /**
     * @var int Max length is 3.
     */
    public $dsp_number;

    public $_table = 'frbFlat_dispo';
    public $_primarykey = 'dsp_id';
    public $_fields = array('dsp_id','dsp_dispo','dsp_number');

    public function getVRules() {
        return array(
                'dsp_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 3 ),
                        array( 'optional' ),
                ),
                'dsp_dispo' => array(
                        array( 'integer' ),
                        array( 'maxlength', 1 ),
                        array( 'notnull' ),
                ),'dsp_number' => array(
                        array( 'integer' ),
                        array( 'maxlength', 3 ),
                        array( 'optional' ),
                )
            );
    }

}